
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.6 Pod 缩放 · Kubernetes - 痴者工良</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="痴者工良">
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="7.lable.html" />
    
    
    <link rel="prev" href="5.update.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://www.whuanle.cn" target="_blank" class="custom-link">痴者工良的博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    文档说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../1.basic/">
            
                <a href="../1.basic/">
            
                    
                    1.基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../1.basic/">
            
                <a href="../1.basic/">
            
                    
                    导读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../1.basic/1.docker.html">
            
                <a href="../1.basic/1.docker.html">
            
                    
                    1.1 说透 Docker：基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../1.basic/2.virtual.html">
            
                <a href="../1.basic/2.virtual.html">
            
                    
                    1.2 说透 Docker： 虚拟化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../1.basic/3.docker_network.html">
            
                <a href="../1.basic/3.docker_network.html">
            
                    
                    1.3 了解 Docker 网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../1.basic/4.pod_docker.html">
            
                <a href="../1.basic/4.pod_docker.html">
            
                    
                    1.4 Docker 和 Pod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../1.basic/5.k8s.html">
            
                <a href="../1.basic/5.k8s.html">
            
                    
                    1.5 K8S入门基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../2.deploy/">
            
                <a href="../2.deploy/">
            
                    
                    2.部署和配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../2.deploy/2.deploy.md">
            
                <span>
            
                    
                    导读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../2.deploy/1.minikube.html">
            
                <a href="../2.deploy/1.minikube.html">
            
                    
                    2.1 使用 Minikube 部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../2.deploy/2.kubeadm.html">
            
                <a href="../2.deploy/2.kubeadm.html">
            
                    
                    2.2 使用 kubeadm 部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../2.deploy/3.kubeadm_ckad.html">
            
                <a href="../2.deploy/3.kubeadm_ckad.html">
            
                    
                    2.3 CKAD认证中的部署教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../2.deploy/4.kubeadm_proxy.html">
            
                <a href="../2.deploy/4.kubeadm_proxy.html">
            
                    
                    2.4 国内代理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../2.deploy/5.dashboard.html">
            
                <a href="../2.deploy/5.dashboard.html">
            
                    
                    2.5 Dashboard
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                    3.Pod部署和调度
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="./">
            
                <a href="./">
            
                    
                    导读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="1.pod.html">
            
                <a href="1.pod.html">
            
                    
                    3.1 Pod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="2.deployment.html">
            
                <a href="2.deployment.html">
            
                    
                    3.2 Deployment部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="3.replica.html">
            
                <a href="3.replica.html">
            
                    
                    3.3 副本集(ReplicaSet)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="4.pod_network.html">
            
                <a href="4.pod_network.html">
            
                    
                    3.34 Pod 端口映射
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="5.update.html">
            
                <a href="5.update.html">
            
                    
                    3.5 Pod 升级、回滚
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.7" data-path="6.scale.html">
            
                <a href="6.scale.html">
            
                    
                    3.6 Pod 缩放
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="7.lable.html">
            
                <a href="7.lable.html">
            
                    
                    3.7.Pod 标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="8.schedule.html">
            
                <a href="8.schedule.html">
            
                    
                    3.8 Pod 调度
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="9.jobs_cronjobs.html">
            
                <a href="9.jobs_cronjobs.html">
            
                    
                    3.9 Jobs、CronJobs
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../4.network/">
            
                <a href="../4.network/">
            
                    
                    4.Kubernetes 网络
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../4.network/">
            
                <a href="../4.network/">
            
                    
                    导读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../4.network/1.network.html">
            
                <a href="../4.network/1.network.html">
            
                    
                    4.1 Kubernetes 网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../4.network/2.endpoint.html">
            
                <a href="../4.network/2.endpoint.html">
            
                    
                    4.2 Endpoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../4.network/3.ingress.html">
            
                <a href="../4.network/3.ingress.html">
            
                    
                    4.3 ingress
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../4.network/4.discovery.html">
            
                <a href="../4.network/4.discovery.html">
            
                    
                    4.4 服务发现
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../5.volumes/">
            
                <a href="../5.volumes/">
            
                    
                    5.volumes
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../5.volumes/">
            
                <a href="../5.volumes/">
            
                    
                    导读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../5.volumes/1.volumes.html">
            
                <a href="../5.volumes/1.volumes.html">
            
                    
                    5.1 卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../5.volumes/2.secret_configmap.html">
            
                <a href="../5.volumes/2.secret_configmap.html">
            
                    
                    5.2 secret 和 ConfigMap 卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../5.volumes/3.nfts.html">
            
                <a href="../5.volumes/3.nfts.html">
            
                    
                    5.3 NFS卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../5.volumes/4.pv_pvc.html">
            
                <a href="../5.volumes/4.pv_pvc.html">
            
                    
                    5.4 持久化卷
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../6.api_safe/">
            
                <a href="../6.api_safe/">
            
                    
                    6.API 和 安全
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../6.api_safe/">
            
                <a href="../6.api_safe/">
            
                    
                    导读
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../7.health/">
            
                <a href="../7.health/">
            
                    
                    7.维护和故障排除
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../8.health/README.md">
            
                <span>
            
                    
                    导读
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../k8s.html">
            
                <a href="../k8s.html">
            
                    
                    Kubernetes 命令概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../ckad.html">
            
                <a href="../ckad.html">
            
                    
                    CKAD 认证帮助
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.6 Pod 缩放</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#36-pod-&#x7F29;&#x653E;"><b></b>3.6 Pod &#x7F29;&#x653E;</a></li><ul><li><span class="title-icon "></span><a href="#&#x7F29;&#x653E;-deployment"><b></b>&#x7F29;&#x653E; Deployment</a></li><ul><li><span class="title-icon "></span><a href="#&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;"><b></b>&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;</a></li><li><span class="title-icon "></span><a href="#&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;"><b></b>&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;</a></li><li><span class="title-icon "></span><a href="#&#x6BD4;&#x4F8B;&#x7F29;&#x653E;"><b></b>&#x6BD4;&#x4F8B;&#x7F29;&#x653E;</a></li></ul></ul></ul></div><h1 id="36-pod-&#x7F29;&#x653E;"><a name="36-pod-&#x7F29;&#x653E;" class="anchor-navigation-ex-anchor" href="#36-pod-&#x7F29;&#x653E;"><i class="fa fa-link" aria-hidden="true"></i></a>3.6 Pod &#x7F29;&#x653E;</h1>
<p>&#x5728;&#x524D;&#x9762;&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x5B66;&#x4E60;&#x5230;&#x4E86; Pod &#x7684;&#x6269;&#x5BB9;&#x3001;&#x6EDA;&#x52A8;&#x66F4;&#x65B0;&#x7B49;&#x77E5;&#x8BC6;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x624B;&#x52A8;&#x4E3A; Deployment &#x7B49;&#x8BBE;&#x7F6E; Pod &#x526F;&#x672C;&#x7684;&#x6570;&#x91CF;&#xFF0C;&#x800C;&#x8FD9;&#x91CC;&#x4F1A;&#x7EE7;&#x7EED;&#x5B66;&#x4E60; &#x5173;&#x4E8E; Pod &#x6269;&#x5BB9;&#x3001;&#x6536;&#x7F29; &#x7684;&#x89C4;&#x5219;&#xFF0C;&#x8BA9; Pod &#x6839;&#x636E;&#x8282;&#x70B9;&#x670D;&#x52A1;&#x5668;&#x7684;&#x8D44;&#x6E90;&#x81EA;&#x52A8;&#x589E;&#x52A0;&#x6216;&#x51CF;&#x5C11; Pod &#x6570;&#x91CF;&#x3002;</p>
<h2 id="&#x7F29;&#x653E;-deployment"><a name="&#x7F29;&#x653E;-deployment" class="anchor-navigation-ex-anchor" href="#&#x7F29;&#x653E;-deployment"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7F29;&#x653E; Deployment</h2>
<h3 id="&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;"><a name="&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;" class="anchor-navigation-ex-anchor" href="#&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;</h3>
<p>&#x5F88;&#x7B80;&#x5355;&#xFF0C;&#x4F7F;&#x7528; <code>kubectl scale</code> &#x547D;&#x4EE4;&#x76F4;&#x63A5;&#x8BBE;&#x7F6E;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash">kubectl scale deployment nginx --replicas<span class="token operator">=</span><span class="token number">10</span>
</code></pre>
<blockquote>
<p>&#x5176;&#x5B83;&#x65B9;&#x5F0F;&#x524D;&#x9762;&#x7684;&#x7AE0;&#x8282;&#x5DF2;&#x7ECF;&#x63D0;&#x5230;&#x8FC7;&#x4E86;&#xFF0C;&#x8FD8;&#x6709;&#x901A;&#x8FC7;&#x4FEE;&#x6539; YAML &#x6587;&#x4EF6;&#x7684;&#x65B9;&#x5F0F;&#x3002;</p>
</blockquote>
<h3 id="&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;"><a name="&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;" class="anchor-navigation-ex-anchor" href="#&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x7F29;&#x653E;</h3>
<p>K8S &#x6709;&#x4E2A; Pod &#x6C34;&#x5E73;&#x81EA;&#x52A8;&#x6269;&#x7F29;&#xFF08;Horizontal Pod Autoscaler&#xFF09; &#x53EF;&#x4EE5;&#x57FA;&#x4E8E; CPU &#x5229;&#x7528;&#x7387;&#x81EA;&#x52A8;&#x6269;&#x7F29; ReplicationController&#x3001;Deployment&#x3001;ReplicaSet &#x548C; StatefulSet &#x4E2D;&#x7684; Pod &#x6570;&#x91CF;&#x3002;Pod &#x81EA;&#x52A8;&#x6269;&#x7F29;&#x4E0D;&#x9002;&#x7528;&#x4E8E;&#x65E0;&#x6CD5;&#x6269;&#x7F29;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x6BD4;&#x5982; DaemonSet&#x3002;</p>
<p>&#x9664;&#x4E86; CPU &#x5229;&#x7528;&#x7387;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x57FA;&#x4E8E;&#x5176;&#x4ED6;&#x5E94;&#x7A0B;&#x5E8F;&#x63D0;&#x4F9B;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x5EA6;&#x91CF;&#x6307;&#x6807; &#x6765;&#x6267;&#x884C;&#x81EA;&#x52A8;&#x6269;&#x7F29;&#x3002;</p>
<p>&#x53C2;&#x8003;&#x8D44;&#x6599;&#xFF1A;<a href="https://kubernetes.io/zh/docs/tasks/run-application/horizontal-pod-autoscale/" target="_blank">https://kubernetes.io/zh/docs/tasks/run-application/horizontal-pod-autoscale/</a></p>
<p>&#x547D;&#x4EE4;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash">kubectl autoscale deployment nginx --min<span class="token operator">=</span><span class="token number">10</span> --max<span class="token operator">=</span><span class="token number">15</span> --cpu-percent<span class="token operator">=</span><span class="token number">80</span>
</code></pre>
<p>&#x8868;&#x793A;&#x76EE;&#x6807; CPU &#x4F7F;&#x7528;&#x7387;&#x4E3A; <code>80%</code>(&#x671F;&#x671B;&#x6307;&#x6807;)&#xFF0C;&#x526F;&#x672C;&#x6570;&#x91CF;&#x914D;&#x7F6E;&#x5E94;&#x8BE5;&#x4E3A; 10 &#x5230; 15 &#x4E4B;&#x95F4;&#xFF0C;CPU &#x662F;&#x52A8;&#x6001;&#x7F29;&#x653E; pod &#x7684;&#x6307;&#x6807;&#xFF0C;&#x4F1A;&#x6839;&#x636E;&#x5177;&#x4F53;&#x7684; CPU &#x4F7F;&#x7528;&#x7387;&#x8BA1;&#x7B97;&#x526F;&#x672C;&#x6570;&#x91CF;&#xFF0C;&#x5176;&#x8BA1;&#x7B97;&#x516C;&#x5F0F;&#x5982;&#x4E0B;&#x3002;</p>
<pre class="language-"><code>&#x671F;&#x671B;&#x526F;&#x672C;&#x6570; = ceil[&#x5F53;&#x524D;&#x526F;&#x672C;&#x6570; * (&#x5F53;&#x524D;&#x6307;&#x6807; / &#x671F;&#x671B;&#x6307;&#x6807;)]
</code></pre><blockquote>
<p>&#x56E0;&#x4E3A;&#x7B14;&#x8005;&#x8FD9;&#x91CC;&#x53EA;&#x6709;&#x4E00;&#x4E2A; Worker &#x8282;&#x70B9;&#xFF0C;&#x4E0D;&#x80FD;&#x63A7;&#x5236; CPU &#x4F7F;&#x7528;&#x7387;&#x6A21;&#x62DF;&#x573A;&#x666F;&#xFF0C;&#x6240;&#x4EE5;&#x4E0D;&#x65B9;&#x4FBF;&#x6F14;&#x793A;&#xFF0C;&#x8BFB;&#x8005;&#x53EA;&#x9700;&#x8981;&#x4E86;&#x89E3;&#x8FD9;&#x4E2A;&#x547D;&#x4EE4;&#x5373;&#x53EF;&#x3002;</p>
</blockquote>
<p>&#x6309;&#x7167;&#x7B97;&#x6CD5;&#x8BA1;&#x7B97;&#xFF0C;&#x52A0;&#x5165;&#x5F53;&#x524D;&#x526F;&#x672C;&#x6570;&#x91CF;&#x4E3A; 12&#xFF0C;&#x4E14; CPU &#x4F7F;&#x7528;&#x7387;&#x8FBE;&#x5230; 90%&#xFF0C;&#x5219;&#x671F;&#x671B;&#x526F;&#x672C;&#x6570;&#x4E3A; <code>12*(90%/80%)</code> = 13.5&#xFF0C;&#x90A3;&#x4E48;&#x7406;&#x8BBA;&#x4E0A;&#x4F1A;&#x90E8;&#x7F72; 14 &#x4E2A; Pod&#xFF0C;&#x4F46;&#x662F; CPU &#x518D;&#x7EE7;&#x7EED;&#x589E;&#x52A0;&#x7684;&#x8BDD;&#xFF0C;&#x6700;&#x591A; 15 &#x4E2A;&#x526F;&#x672C;&#x6570;&#x91CF;&#x3002;&#x5982;&#x679C;&#x5728;&#x673A;&#x5668;&#x7BA1;&#x591F;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x53EF;&#x4EE5;&#x53BB;&#x6389; <code>min</code> &#x548C; <code>max</code> &#x53C2;&#x6570;&#x3002;</p>
<p>&#x7B97;&#x6CD5;&#x7EC6;&#x8282;&#x8BF7;&#x67E5;&#x770B;&#xFF1A;<a href="https://kubernetes.io/zh/docs/tasks/run-application/horizontal-pod-autoscale/#algorithm-details" target="_blank">https://kubernetes.io/zh/docs/tasks/run-application/horizontal-pod-autoscale/#algorithm-details</a></p>
<h3 id="&#x6BD4;&#x4F8B;&#x7F29;&#x653E;"><a name="&#x6BD4;&#x4F8B;&#x7F29;&#x653E;" class="anchor-navigation-ex-anchor" href="#&#x6BD4;&#x4F8B;&#x7F29;&#x653E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6BD4;&#x4F8B;&#x7F29;&#x653E;</h3>
<p>&#x6BD4;&#x4F8B;&#x7F29;&#x653E;&#x6307;&#x7684;&#x662F;&#x5728;&#x4E0A;&#x7EBF; Deployment &#x65F6;&#xFF0C;&#x4E34;&#x65F6;&#x8FD0;&#x884C;&#x7740;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x7684;&#x591A;&#x4E2A;&#x7248;&#x672C;(&#x5171;&#x5B58;)&#xFF0C;&#x6BD4;&#x4F8B;&#x7F29;&#x653E;&#x662F;&#x63A7;&#x5236;&#x4E0A;&#x7EBF;&#x65F6;&#x591A;&#x4E2A; Pod &#x670D;&#x52A1;&#x53EF;&#x7528;&#x6570;&#x91CF;&#x7684;&#x65B9;&#x5F0F;&#x3002;</p>
<p>&#x6C34;&#x5E73;&#x7F29;&#x653E;&#x53EA;&#x5173;&#x5FC3;&#x6700;&#x7EC8;&#x7684;&#x671F;&#x671B; Pod &#x6570;&#x91CF;&#xFF0C;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x526F;&#x672C;&#x6570;&#x548C;&#x6C34;&#x5E73;&#x7F29;&#x653E;&#xFF0C;&#x51B3;&#x5B9A;&#x6700;&#x7EC8; Pod &#x6570;&#x91CF;&#x6709;&#x591A;&#x5C11;&#x4E2A;&#x3002;</p>
<p>&#x800C;&#x6BD4;&#x4F8B;&#x7F29;&#x653E;&#x662F;&#x63A7;&#x5236;&#x5BF9;&#x8C61;&#x4E0A;&#x7EBF;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x65B0;&#x7684; Pod &#x521B;&#x5EFA;&#x901F;&#x5EA6;&#x548C; &#x65E7;&#x7684; Pod &#x9500;&#x6BC1;&#x901F;&#x5EA6;&#x3001; Pod &#x7684;&#x53EF;&#x7528;&#x7A0B;&#x5EA6;&#xFF0C;&#x8DDF;&#x4E0A;&#x7EBF;&#x8FC7;&#x7A0B;&#x4E2D;&#x65B0;&#x65E7;&#x7248;&#x672C;&#x7684; Pod &#x66FF;&#x6362;&#x6570;&#x91CF;&#x6709;&#x5173;&#x3002;</p>
<p>&#x67E5;&#x770B;&#x4E0A;&#x4E00;&#x7AE0;&#x4E2D;&#x521B;&#x5EFA;&#x7684; Deployment &#x7684;&#x90E8;&#x5206; YAML &#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code class="lang-yaml"><span class="token key atrule">spec</span><span class="token punctuation">:</span>
  <span class="token key atrule">progressDeadlineSeconds</span><span class="token punctuation">:</span> <span class="token number">600</span>
  <span class="token key atrule">replicas</span><span class="token punctuation">:</span> <span class="token number">1</span>
  <span class="token key atrule">revisionHistoryLimit</span><span class="token punctuation">:</span> <span class="token number">10</span>
  <span class="token key atrule">selector</span><span class="token punctuation">:</span>
    <span class="token key atrule">matchLabels</span><span class="token punctuation">:</span>
      <span class="token key atrule">app</span><span class="token punctuation">:</span> nginx
  <span class="token key atrule">strategy</span><span class="token punctuation">:</span>
    <span class="token key atrule">rollingUpdate</span><span class="token punctuation">:</span>
      <span class="token key atrule">maxSurge</span><span class="token punctuation">:</span> 25%
      <span class="token key atrule">maxUnavailable</span><span class="token punctuation">:</span> 25%
    <span class="token key atrule">type</span><span class="token punctuation">:</span> RollingUpdate
</code></pre>
<p><code>strategy</code> &#x53EF;&#x4EE5;&#x914D;&#x7F6E; Pod &#x662F;&#x600E;&#x4E48;&#x66F4;&#x65B0;&#x7684;&#x3002;</p>
<p>&#x5F53;&#x6211;&#x4EEC;&#x8BBE;&#x7F6E;<code>.spec.strategy.type==RollingUpdate</code>&#x65F6;&#xFF0C;&#x4FBF;&#x4F1A;&#x91C7;&#x53D6;&#x6EDA;&#x52A8;&#x66F4;&#x65B0;&#x7684;&#x65B9;&#x5F0F;&#x66F4;&#x65B0; Pods&#xFF0C;&#x6B64;&#x65F6;&#x53EF;&#x4EE5;&#x6307;&#x5B9A; <code>maxUnavailable</code> &#x548C; <code>maxSurge</code> &#x6765;&#x63A7;&#x5236;&#x6EDA;&#x52A8;&#x66F4;&#x65B0; &#x8FC7;&#x7A0B;&#x3002;&#x8FD9;&#x4E2A;&#x6211;&#x4EEC;&#x4E4B;&#x524D;&#x63D0;&#x5230;&#x8FC7;&#xFF0C;&#x5C31;&#x662F; Deployment &#x9ED8;&#x8BA4;&#x4F1A;&#x4FDD;&#x8BC1;&#x4E00;&#x76F4;&#x6709; 75% &#x7684; pod&#x5904;&#x4E8E;&#x53EF;&#x7528;&#x72B6;&#x6001;&#xFF0C;&#x5728;&#x5B8C;&#x6210;&#x66F4;&#x65B0;&#x524D;&#x53EF;&#x80FD;&#x6709;&#x591A;&#x4E2A;&#x7248;&#x672C;&#x7684; pod &#x5171;&#x5B58;&#x3002;</p>
<ul>
<li><p>maxUnavailable</p>
<p>&#x6700;&#x5927;&#x4E0D;&#x53EF;&#x7528;&#x6570;&#x91CF;&#x6216;&#x6BD4;&#x4F8B;&#xFF0C;&#x65E7;&#x7684; Pod &#x4F1A;&#x4EE5;&#x8FD9;&#x4E2A;&#x6570;&#x91CF;&#x6216;&#x6BD4;&#x4F8B;&#x9010;&#x6E10;&#x51CF;&#x5C11;&#x3002;</p>
</li>
<li><p>maxSurge</p>
<p>&#x6700;&#x5927;&#x5CF0;&#x503C;&#xFF0C;&#x65B0;&#x7684; Pod &#x4F1A;&#x6309;&#x7167;&#x8FD9;&#x4E2A;&#x6570;&#x91CF;&#x6216;&#x6BD4;&#x4F8B;&#x9010;&#x6E10;&#x521B;&#x5EFA;&#x3002;</p>
</li>
</ul>
<p>3.5 &#x7AE0;&#x5DF2;&#x7ECF;&#x4F7F;&#x7528;&#x5230;&#x4E86;&#x8FD9;&#x4E24;&#x8005;&#xFF0C;&#x8FD9;&#x91CC;&#x5C31;&#x4E0D;&#x7EC6;&#x8BF4;&#x4E86;&#xFF0C;&#x8BFB;&#x8005;&#x8BF7;&#x53C2;&#x8003;&#xFF1A;<a href="https://kubernetes.io/zh/docs/concepts/workloads/controllers/deployment/#max-unavailable" target="_blank">https://kubernetes.io/zh/docs/concepts/workloads/controllers/deployment/#max-unavailable</a></p>
<p>&#x6211;&#x4EEC;&#x67E5;&#x770B;&#x4E4B;&#x524D;&#x7684; Deployment&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4; <code>kubectl get deployment nginx -o yaml</code>&#xFF1A;</p>
<pre class="language-"><code class="lang-yaml"><span class="token punctuation">...</span> <span class="token punctuation">...</span>
  <span class="token key atrule">strategy</span><span class="token punctuation">:</span>
    <span class="token key atrule">rollingUpdate</span><span class="token punctuation">:</span>
      <span class="token key atrule">maxSurge</span><span class="token punctuation">:</span> 25%
      <span class="token key atrule">maxUnavailable</span><span class="token punctuation">:</span> 25%
    <span class="token key atrule">type</span><span class="token punctuation">:</span> RollingUpdate
<span class="token punctuation">...</span> <span class="token punctuation">...</span>
</code></pre>
<blockquote>
<p>&#x914D;&#x7F6E;&#x8868;&#x793A;&#xFF0C;&#x6BCF;&#x6B21;&#x53EA;&#x6709; 1/4 &#x7684; Pod &#x88AB;&#x66F4;&#x65B0;&#x3001;&#x66FF;&#x6362;&#x3002;</p>
</blockquote>
<p>&#x8FD9;&#x4E2A;&#x662F;&#x6240;&#x6709; Deployment &#x7684;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#xFF0C;&#x5728;&#x66F4;&#x65B0;&#x955C;&#x50CF;&#x7248;&#x672C;&#x65F6;&#xFF0C;&#x65E7;&#x7684; Pod &#x4F1A;&#x88AB;&#x65B0;&#x7684; Pod &#x66FF;&#x6362;&#xFF0C;&#x4F46;&#x662F;&#x4E0D;&#x662F;&#x4E00;&#x4E0B;&#x5B50;&#x5B8C;&#x6210;&#x7684;&#xFF0C;&#x6BCF;&#x6B21;&#x5904;&#x7406; 25% &#x7684; Pod&#xFF0C;&#x5728;&#x66F4;&#x65B0;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5FC5;&#x987B;&#x4FDD;&#x8BC1;&#x6211;&#x4EEC;&#x7684;&#x670D;&#x52A1;&#x4F9D;&#x7136;&#x53EF;&#x7528;&#xFF0C;&#x5373;&#x8FD8;&#x6709;&#x65E7;&#x7248;&#x672C;&#x7684; Pod &#x5728;&#x8FD0;&#x884C;&#x3002;&#x8FD9;&#x4E2A;&#x914D;&#x7F6E;&#x8BBE;&#x5B9A;&#x4E86;&#x66F4;&#x65B0;&#x8FC7;&#x7A0B;&#x4E2D;&#x81F3;&#x5C11;&#x4FDD;&#x8BC1; 75% &#x7684; Pod &#x8FD8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#xFF0C;&#x8FD9;&#x4E2A;&#x5C31;&#x662F;&#x6BD4;&#x4F8B;&#x7F29;&#x653E;&#x3002;</p>
<p>&#x4E0B;&#x9762;&#x6211;&#x4EEC;&#x6765;&#x8FDB;&#x884C;&#x5B9E;&#x9A8C;&#x3002;</p>
<p>&#x9996;&#x5148;&#x521B;&#x5EFA;&#x65B0;&#x7684; Deployment &#xFF0C;&#x8BBE;&#x7F6E;&#x526F;&#x672C;&#x6570;&#x91CF;&#x4E3A; 10&#xFF1A;</p>
<pre class="language-"><code class="lang-bash">kubectl create deployment nginx --image<span class="token operator">=</span>nginx:1.19.0 --replicas<span class="token operator">=</span><span class="token number">10</span>
<span class="token comment"># kubectl scale deployment nginx --replicas=10</span>
</code></pre>
<p>&#x6211;&#x4EEC;&#x6267;&#x884C; <code>kubectl edit deployment nginx</code> &#x4FEE;&#x6539;&#x7F29;&#x653E;&#x4E2A;&#x6570;&#xFF1A;</p>
<pre class="language-"><code class="lang-yaml">  <span class="token key atrule">strategy</span><span class="token punctuation">:</span>
    <span class="token key atrule">rollingUpdate</span><span class="token punctuation">:</span>
      <span class="token key atrule">maxSurge</span><span class="token punctuation">:</span> <span class="token number">3</span>
      <span class="token key atrule">maxUnavailable</span><span class="token punctuation">:</span> <span class="token number">2</span>
    <span class="token key atrule">type</span><span class="token punctuation">:</span> RollingUpdate
</code></pre>
<blockquote>
<p>&#x9664;&#x4E86;&#x53EF;&#x7528;&#x767E;&#x5206;&#x6BD4;&#x8868;&#x793A;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E2A;&#x6570;&#x8868;&#x793A;&#x3002;</p>
<p>&#x65E7;&#x7684; Pod &#x6309;&#x7167;&#x6700;&#x5927; 2 &#x4E2A;&#x7684;&#x901F;&#x5EA6;&#x4E0D;&#x65AD;&#x51CF;&#x5C11;&#xFF1B;&#x65B0;&#x7684; Pod &#x6309;&#x7167;&#x6700;&#x5927; 3 &#x4E2A;&#x7684;&#x901F;&#x5EA6;&#x4E0D;&#x65AD;&#x589E;&#x52A0;&#xFF1B;</p>
</blockquote>
<p>&#x6BD4;&#x4F8B;&#x7F29;&#x653E;&#x7684;&#x914D;&#x7F6E;&#x5904;&#x7406;&#x597D;&#x4E86;&#xFF0C;&#x5B83;&#x4F1A;&#x5728;&#x6211;&#x4EEC;&#x4E0A;&#x7EBF;&#x65B0;&#x7248;&#x672C;&#x7684;&#x65F6;&#x5019;&#x751F;&#x6548;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x89C2;&#x5BDF;&#x5230;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#xFF0C;&#x4F46;&#x662F;&#x9700;&#x8981;&#x5FEB;&#x4E00;&#x70B9;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x67E5;&#x770B;&#x72B6;&#x6001;&#x3002;</p>
<p>&#x5FEB;&#x901F;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash">kubectl <span class="token builtin class-name">set</span> image deployment nginx <span class="token assign-left variable">nginx</span><span class="token operator">=</span>nginx:1.20.0
kubectl get replicaset
</code></pre>
<pre class="language-"><code class="lang-bash">root@instance-1:~<span class="token comment"># kubectl set image deployment nginx nginx=nginx:1.20.0</span>
deployment.apps/nginx image updated
root@instance-1:~<span class="token comment"># kubectl get replicaset</span>
NAME               DESIRED   CURRENT   READY   AGE
nginx-7b87485749   <span class="token number">5</span>         <span class="token number">5</span>         <span class="token number">0</span>       93m
nginx-85b45874d9   <span class="token number">0</span>         <span class="token number">0</span>         <span class="token number">0</span>       93m
nginx-bb957bbb5    <span class="token number">8</span>         <span class="token number">8</span>         <span class="token number">8</span>       35m
</code></pre>
<blockquote>
<p>&#x56E0;&#x4E3A;&#x5141;&#x8BB8;&#x65B0;&#x7684; Pod &#x521B;&#x5EFA;&#x8F83;&#x5FEB;(3&#x4E2A;)&#xFF0C;&#x6240;&#x4EE5;&#x6700;&#x7EC8;&#x53EF;&#x80FD;&#x65B0;&#x7684; Pod &#x6570;&#x91CF;&#x8FBE;&#x5230; 10 &#x4E2A;&#x4E86;&#xFF0C;&#x65E7;&#x7684; Pod &#x8FD8;&#x6709;&#x5F88;&#x591A;&#xFF0C;&#x603B;&#x6570;&#x91CF;&#x5927;&#x4E8E; 10&#x3002;</p>
</blockquote>
<p>&#x6700;&#x7EC8;&#xFF1A;</p>
<pre class="language-"><code>NAME               DESIRED   CURRENT   READY   AGE
nginx-7b87485749   10        10        10      99m
nginx-85b45874d9   0         0         0       99m
nginx-bb957bbb5    0         0         0       41m
</code></pre><p>&#x5982;&#x679C;&#x60F3;&#x65B0;&#x7248;&#x672C;&#x7684; Pod &#x4E0A;&#x7EBF;&#x901F;&#x5EA6;&#x66F4;&#x5FEB;&#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x628A; <code>maxSurge</code> &#x6570;&#x91CF;&#x6216;&#x6BD4;&#x4F8B;&#x8BBE;&#x7F6E;&#x5927;&#x4E00;&#x4E9B;&#xFF1B;&#x4E3A;&#x4E86;&#x4FDD;&#x8BC1;&#x4E0A;&#x7EBF;&#x8FC7;&#x7A0B;&#x7A33;&#x5B9A;&#x3001;&#x670D;&#x52A1;&#x53EF;&#x7528;&#x7A0B;&#x5EA6;&#x9AD8;&#xFF0C;&#x53EF;&#x4EE5;&#x628A; <code>maxUnavailable</code> &#x8BBE;&#x7F6E;&#x5C0F;&#x4E00;&#x4E9B;&#x3002;</p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x75F4;&#x8005;&#x5DE5;&#x826F; 2021 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x6587;&#x6863;&#x6700;&#x540E;&#x66F4;&#x65B0;&#x65F6;&#x95F4;&#xFF1A;
2021-11-05 20:51:15
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="5.update.html" class="navigation navigation-prev " aria-label="Previous page: 3.5 Pod 升级、回滚">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="7.lable.html" class="navigation navigation-next " aria-label="Next page: 3.7.Pod 标签">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.6 Pod 缩放","level":"1.4.7","depth":2,"next":{"title":"3.7.Pod 标签","level":"1.4.8","depth":2,"path":"3.pod/7.lable.md","ref":"3.pod/7.lable.md","articles":[]},"previous":{"title":"3.5 Pod 升级、回滚","level":"1.4.6","depth":2,"path":"3.pod/5.update.md","ref":"3.pod/5.update.md","articles":[]},"dir":"ltr"},"config":{"plugins":["tbfed-pagefooter","anchor-navigation-ex","mermaid-gb3","insert-logo","chapter-fold","advanced-emoji","github","splitter","alerts","popup","prism","-highlight","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 痴者工良 2021","modify_label":"文档最后更新时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"prism":{"lang":{"flow":"typescript","shell":"bash"},"ignore":["mermaid","eval-js"],"css":["prismjs/themes/prism.css"],"js":["prismjs/prism.js","prismjs/components.js","prismjs/components/prism-go.min.js","prismjs/components/prism-yaml.min.js","prismjs/components/prism-bash.min.js","prismjs/components/prism-shell-session.min.js"]},"github":{"url":"https://github.com/whuanle/kubernetes"},"livereload":{},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":false,"showLevel":false},"alerts":{},"advanced-emoji":{"embedEmojis":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"/images/logo.jpg"}},"theme":"default","author":"痴者工良","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Kubernetes - 痴者工良","language":"zh-hans","links":{"sidebar":{"痴者工良的博客":"https://www.whuanle.cn"}},"gitbook":"*","description":"这是一本关于 Kubernetes 的书，作者 痴者工良"},"file":{"path":"3.pod/6.scale.md","mtime":"2021-11-05T12:51:15.778Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-11-16T23:21:22.294Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

